package info.techgeek.labs.threads;

/** Based on Sun Java Thread Tutorial example */

public class SimpleThread extends Thread {

    public void run() {
      for (int i = 0; i < 5; i++) {
          System.out.println(i	 + " " + getName());
          try {
              sleep((long)(Math.random() * 1000));  // sleep for at least 1 second
          } catch (InterruptedException e) {}
    }
    
    System.out.println("DONE! " + getName());
    }
}